package com.zhouyu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 测试Spring 进行依赖注入时 解析@Value注解
 *
 * @author by gang.Li 2022/4/5 19:49
 */
@Component
public class ValueTest {

	@Autowired
//	@Value("${xxx}")
//	@Value("#{xiaogang}")
	@Value("xxx")
	private User orderService;

	public void printOrderService() {
		System.out.println(orderService);
	}
}
